#ifndef ACCOUNTCOMBOSTYLEDITEMDELEGATE_H
#define ACCOUNTCOMBOSTYLEDITEMDELEGATE_H

#include <QStyledItemDelegate>

class AccountComboStyledItemDelegate : public QStyledItemDelegate
{
	Q_OBJECT

public:
	AccountComboStyledItemDelegate(QObject *parent = nullptr);
	~AccountComboStyledItemDelegate();
	void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const;
	//QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const;
	bool editorEvent(QEvent *event, QAbstractItemModel* model, const QStyleOptionViewItem& option, const QModelIndex& index);

signals:
	void removeAccount(int);
};

#endif // ACCOUNTCOMBOSTYLEDITEMDELEGATE_H
